﻿// See https://aka.ms/new-console-template for more information
using DoNet.Entitys;
using DoNet.ORM.Repository;

Console.WriteLine("Hello, World!");

try
{
    string connectionString = "Data Source=.;Initial Catalog=TEST;User ID=sa;Password=sql2012;Trusted_Connection=True;Encrypt=false;";
    var repository = RepositoryFactory.Create(OrmType.Dapper, DataBaseType.SqlServer, connectionString);
    var list = repository.GetAll<Sys_Area>();
}
catch (Exception ex)
{
    throw ex;
}